﻿// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");


// 适配器模式
var adaptee = new Adaptee();
var adapter = new Adapter(adaptee); // 包装

adapter.Request(); // 成功调用旧服务